package com.woniuxy.hrp.provider;

import com.woniuxy.hrp.entity.Wallet;
import org.apache.ibatis.jdbc.SQL;

public class WalletProvide {
    public String update(Wallet wallet) {
        return new SQL() {
            {
                UPDATE("hrp_wallet");
                if(wallet.getBalance()!=null){
                    SET("balance=#{balance}");
                }
                WHERE("id=id");
            }
        }.toString();

    }
}
